<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>岗位管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
  
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/zTreeStyle/demo.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/zTreeStyle/zTreeStyle.css" type="text/css">
     <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
    <style>
         .alerts{display:none;position:fixed;top:0;left:0;width: 100%;height: 100%;background: rgba(0,0,0,0.5);}
       .alerts .alerts_content{background:#fff;position: fixed;top: 50%;left: 50%; width: 700px;min-height: 500px;margin: -220px 0 0 -350px;padding:5px;border:4px solid #ccc/* margin 负值为宽高的一半 */}
        .wait{ display:none;background:#f4f4f5;position: fixed;top: 50%;left: 50%; width: 700px;min-height: 250px;margin: -220px 0 0 -350px;padding:5px;border:4px solid #ccc/* margin 负值为宽高的一半 */}
       .alerts .alerts_content h3{font-weight: normal;text-align:left;line-height: 24px;font-size: 16px;padding-left: 1%;width: 99%;margin-bottom:30px;background: #d0e0e0}
       .alerts .alerts_content .alerts_form{
        width:100%;
       }
         .alert_addNewZone_tree{display:none;position:fixed;top:0;left:0;width: 100%;height: 100%;background: rgba(0,0,0,0.5);}
       .alert_addNewZone_tree .alert_addNewZone_content_tree{background:#fff;position: fixed;top: 50%;left: 50%; width: 500px;height: 300px;margin: -150px 0 0 -250px;border:4px solid #ccc;box-sizing: border-box;overflow: hidden;/* margin 负值为宽高的一半 */}
       .alert_addNewZone_tree .alert_addNewZone_content_tree h3{font-weight: normal;text-align:left;line-height: 24px;font-size: 16px;padding-left: 1%;width: 100%;background: #d0e0e0}
       .alert_addNewZone .alert_addNewZone_content .alert_addNewZone_form{
        width:100%;
       }
       .alert_addNewZone_tree .alert_addNewZone_content_tree .alert_addNewZone_form_tree{
        height: 280px;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
       }
       .alerts .alerts_content .alerts_form form{width: 100%;}
       .alerts .alerts_content .alerts_form form div{margin-bottom:30px;width: 100%;text-align: center;}
       .alerts .alerts_content .alerts_form form div label{display:inline-block;width: 130px;text-align: right;}
       .alerts .alerts_content .alerts_form form div:nth-of-type(1) input{margin-right: 28px;}
        .mtp{margin-top:3px;}
        .no-padding{padding: 0;}
        #gopage{color:blue;cursor: pointer;}
        #firstpage{cursor: pointer;}


           .alert_addNewZone_tree{display:none;position:fixed;top:0;left:0;width: 100%;height: 100%;background: rgb(255,255,255,0.7);z-index: 200}
       .alert_addNewZone_tree .alert_addNewZone_content_tree{background:#fff;position: fixed;top: 50%;left: 50%; width: 500px;height: 350px;margin: -150px 0 0 -250px;border:4px solid #ccc;box-sizing:border-box;overflow: hidden;/* margin 负值为宽高的一半 */}
       .wait,.waits{background:#f4f4f5;position: fixed;top: 50%;left: 50%; width: 500px;height: 300px;margin: -150px 0 0 -250px;padding:5px;border:4px solid #ccc/* margin 负值为宽高的一半 */}
       .alert_addNewZone_tree .alert_addNewZone_content_tree h3{font-weight: normal;text-align:left;line-height: 24px;font-size: 16px;padding-left: 1%;width: 100%;background: #d0e0e0}
    </style>
</head>

<body class="white-bg" style="color:#333;padding:3px;">
    <div class="page-heade">
       <h2 class="title_color text-center">岗位管理</h2>
    </div>
        <div class="padding-10">
			<div class="col-md-3">
				<div>
					<ul id="treeDemo" class="ztree"></ul>
				</div>
			</div>
			<div class="col-md-9 no-padding">
				<table class="table table-bordered" style="width: 100%;">
					<tbody>
						<tr>
							<td colspan="6">
								<button class="btn btn-sm btn-primary add">添加岗位</button>
	            				
	            				<button class="btn btn-sm btn-primary huishou">回收站</button>
							</td>
						</tr>
						<form action="#" method="post" id="form_check" class="form-inline formpage">
						<tr>
							<td>部门名称</td>
							<td><input type="text" id="de_name" name="de_name" value="{$data.de_name}" class="form-control" /></td>
							<td>部门类型</td>
							<td>
								<select id="check_type" name="check_type" class="form-control select" style="padding: 2px 12px">
									<option value='1'>本部门及其下属</option>
									<option value='2' {if condition='$data.check_type=="2"'}selected{/if}>本部门</option>
									<option value='3' {if condition='$data.check_type=="3"'}selected{/if}>下属部门</option>
								</select>
							</td>
							<td>
                                 岗位名称
							</td>
                            <td>
                            <input type="text" id="job_name" name="job_name" value="{$data.job_name}" class="form-control" />
                            </td>
						</tr>
                        <tr>
                            <td colspan="6" class='text-center'>
                                <input type="hidden" value='{$page}' name="page" id="page-go"/>
                                <input type="hidden" value='{$list}' name="list" id="list-go"/>
                                <input type="button" value="查询" id="check" class="btn btn-sm btn-info"/>
                                <input type="button" class="btn btn-sm btn-info" id="clear_check" value="查询条件清空"/>
                                <input type="button" class="btn btn-sm btn-info" id="dc" value="导出Excel"/>
                            </td>
                        </tr>
						</form>
					</tbody>
				</table>
				{if condition="$sum neq 0"}
				<table class="table table-striped table-bordered table-hover bud_hei text-center" style="width: 100%;">
					<thead>
						<tr class='info'>
							<td style="width:5%;">序号</td>
                            <td style="width:15%;">岗位编号</td>
							<td style="width:15%;">岗位名称</td>
                            <td style="width:15%;">对外称谓</td>
							<td style="width:10%;">岗位等级</td>
							<td style="width:15%;">上级岗位</td>
							<td style="width:15%;">所属部门</td>
							<td style="width:10%;">操作</td>
						</tr>
						
					</thead>
					<tbody>
						 {volist name="jarr" id="vo" key='j'}
                            <tr>
                                <td style="width:5%;">{$j}</td>
                                <td style="width:15%;">{$vo.job_no}</td>
                                <td style="width:15%;">{$vo.job_name}</td>
                                <td style="width:15%;">{$vo.job_title}</td>
                                <td style="width:10%;">{$vo.job_level}</td>
                                <td style="width:15%;">{$vo.pjob}</td>
                                <td style="width:15%;">{$vo.de_name}</td>
                                <td style="width:10%;" jid='{$vo.id}'>
                                     <a href="javascript:;" class='updatej'>修改</a>
                                    <a href="javascript:;" class='dropj'>删除</a>
                                </td>
                            </tr>
                        {/volist}
						
					</tbody>

				</table>
				<h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            			<script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>
                          	每页显示
					<select id="pagesize">
						<option value='5' {if condition="$list eq 5"}selected{/if}>5条</option>
						<option value='10'{if condition="$list eq 10"}selected{/if}>10条</option>
					</select>
				</h5>
				{else/}
				<h3 class="text-center">对不起没有查询到符合条件的信息</h3>
				{/if}
			</div>
        </div>


      <!--新增岗位弹框-->
    <div class="alert_addjob alerts">
        <div class="alerts_content animated fadeInUp">
            <h3><span id="istj">新增岗位</span><a style="float: right;margin-right: 10px;font-size: 16px" id="del_this">&times;</a></h3>
            <div  class="alerts_form">
                <form id="newdepart">
                    <table class="table table-bordered">
                            <input type="hidden" value="0" id="jid"/>
                            <tr>
                                <td class="text-right font-bold" >岗位名称<span style="color: red">*</span>:</td>
                                <td><input type="text"  id="new_job_name" class="form-control" /></td>
                                <td class="text-right font-bold" >对外称谓<span style="color: red">*</span>:</td>
                                <td><input type="text"   id="new_job_title" class="form-control" /></td>
                                
                            </tr>
                            <tr>
                                <td class="text-right font-bold" >上级岗位:</td>
                                <td>
                                    <input type="hidden" id="new_pid"/>
                                    <span id="new_pid_kg"></span>
                                    <a href="javascript:;" class="new_job_partent_id">选择</a>
                                </td>
                                <td class="text-right font-bold" >岗位编码<span style="color: red">*</span>:</td>
                                <td><input type="text"  id="new_job_no" class="form-control" /></td>
                                
                            </tr>
                            <tr>
                                <td class="text-right font-bold" >岗位等级<span style="color: red">*</span>:</td>
                                <td><input type="text"   id="new_job_level" class="form-control" /></td>
                                <td class="text-right font-bold" >所属部门:</td>
                                <td>
                                   <span id="depart_kg">
                                
                                     </span>
                            <input type="hidden" value=''  id="de_id"/>
                            <a href="javascript:;" id="choose_depart">选择部门</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-right font-bold" >说明:</td>
                                <td colspan="3">
                                    <textarea id="new_job_remark" style="width:80%;height:100px;resize: none;" class="form-control"></textarea>
                                </td>
                                
                            </tr>
                    
                    </table>
                    <div class="row text-center">

            
                        
                        <input type="button" value="保存岗位" id="bc" class="btn btn-sm btn-primary"/>
                       
                    </div>
                </form>
            </div>
        </div>
       </div>
        <!--新增部门弹框-->
    <!--树状弹框-->
        <div class="alert_addNewZone_tree">
            <div class="alert_addNewZone_content_tree animated fadeInUp">
                <h3><span id="txtree"></span><a style="float: right;margin-right: 10px;font-size: 16px" id="del_this1">&times;</a></h3>
                <div  class="alert_addNewZone_form_tree" id="fenqu_fzr">
                  <ul id="tree_em" class="ztree"></ul>
                   <div class="quedingbtn" style="position: absolute;right: 0;bottom: 10px;"><button class="btn" id="qd">确定</button></div>
                </div>
                
            </div>
            <div class="wait">
                <div class="ibox ">
                    <div class="ibox-title">
                        <h5>正在处理，请稍后.....</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="spiner-example">
                            <div class="sk-spinner sk-spinner-chasing-dots">
                                <div class="sk-dot1"></div>
                                <div class="sk-dot2"></div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
         </div>
        <!--树状弹框-->
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
     <!-- Peity -->
    
    <script src="__STATIC__/layout/js/content.js?v=1.0.0"></script>
     <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    
    <!-- ztree -->
    <script type="text/javascript" src="__STATIC__/zTreeStyle/jquery.ztree.core.js"></script>
    <script type="text/javascript" src="__STATIC__/zTreeStyle/jquery.ztree.excheck.js"></script>
    <!--统计代码，可删除-->
   <script>
   $("#dc").click(function(){
    window.open("{:url('jobdc')}")
   })
    //删除
        $(".dropj").click(function(){
             var jid=$(this).parent().attr("jid");
            swal({
                            title: "提示",
                            text: "您真的要删除这个岗位么？",
                            type: "warning",
                            showCancelButton: true,
                            confirmButtonColor: "#FF3333",
                            confirmButtonText: "是的我要删除",
                            cancelButtonText: "取消",
                            closeOnConfirm: true
                        },
                        function (isConfirm) {
                            if (isConfirm) {
                           //alert(cid);
                            $.post("{:url('Job/dropj')}",{jid:jid},function(re){
                                //alert(re);
                                var data=JSON.parse(re)
                                if(data["state"]==1){
                                   alert("操作已成功")
                                   location.href="{:url('manage')}"
                                }else{
                                    alert(data["msg"])
                                }
                            })
                        }
                        })
                           
        })
   //新建岗位弹框
    $(".add").click(function(){
       
                $(".alert_addjob input[type='text']").val("");
                $(".alert_addjob input[type='hidden']").val("");
                $("#new_pid_kg").html("");
                $(".alert_addjob textarea").val("");
                $("#jid").val(0);
                qxde();qxpjob();
                $("#istj").html("新增岗位")
                $(".alert_addjob").show();

            
        
    })
    //修改岗位
    $(".updatej").click(function(){
        var jid=$(this).parent().attr("jid");
       $.post("{:url('Job/getthisjob')}",{jid:jid},function(re){
            if(re!=""){
                var data=JSON.parse(re);
                $("#jid").val(jid);
                $("#new_job_name").val(data["job_name"]);
                $("#new_job_title").val(data["job_title"]);
                 $("#new_job_no").val(data["job_no"]);
                 $("#new_job_level").val(data["job_level"]);
                 $("#new_job_remark").val(data["remark"]);
                 $("#new_pid").val(data["jpid"]);
                 $("#new_pid_kg").html("<span style='background:#d0e0e0;border:1px solid #ccc;border-radius:5px;padding:2px 3px;margin-right:5px'>"+data["pjob"]+"&nbsp;&nbsp;<span onclick='qxpjob();' style='cursor:pointer;font-size:16px'>x</span></span>");
                 $("#de_id").val(data["did"]);
                $("#depart_kg").html("<span style='background:#d0e0e0;border:1px solid #ccc;border-radius:5px;padding:2px 3px;margin-right:5px'><span class='departsdename'>"+data["de_name"]+"</span>&nbsp;&nbsp;<span onclick='qxde();' style='cursor:pointer;font-size:16px;'>x</span></span>");
                $("#istj").html("编辑岗位")
                $(".alert_addjob").show();
            }
            
       })

    })
    $("#del_this").click(function(){
        $(".alert_addjob").hide();
    })
          //翻页
       
        $("#check").click(function(){
              $("#page-go").val(1);
              $(".formpage").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            $("#page-go").val(1);
            $("#check_type").val(1);
            $(".formpage").submit();
        })
        function disabledNode(e) {
            var zTree = $.fn.zTree.getZTreeObj("tree_em"),
            disabled = e.data.disabled,
            nodes = zTree.getSelectedNodes();
            if (nodes.length == 0) {
                alert("请先选择一个节点");
            }

            for (var i=0, l=nodes.length; i<l; i++) {
                zTree.setChkDisabled(nodes[i], disabled);
            }
        }

   

   </script>
<script type="text/javascript">
//部门删除
     function qxde(){
            $("#depart_kg").html("");
            $("#de_id").val("");
    }
      //上级岗位伤处
    function qxpjob(){
        $("#new_pid_kg").html("");
        $("#new_pid").val("");
    }
        <!--
       var setting = {
            check: {
                enable: false,
               
            },
            data: {
                simpleData: {
                    enable: true
                }
            },
            callback: {
				onClick: zTreeOnClick
			}
        };
     
        var zn='{$alldepart}';
        var zNodes =JSON.parse(zn);
        
        var code;       
        function setCheck() {
            var type = $("#level").attr("checked")? "level":"all";
            setting.check.radioType = type;
            showCode('setting.check.radioType = "' + type + '";');
            $.fn.zTree.init($("#treeDemo"), setting, zNodes);
            
        }
        function showCode(str) {
            if (!code) code = $("#code");
            code.empty();
            code.append("<li>"+str+"</li>");
        }
        
        $(document).ready(function(){
            setCheck();         
            $("#level").bind("change", setCheck);
            $("#all").bind("change", setCheck);
            var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
			treeObj.expandAll(true)
        });
        function zTreeOnClick(event, treeId, treeNode) {
    		$("#de_name").val(treeNode.name);
             $("#page-go").val(1);
    		document.getElementById("form_check").submit();
		};

         //选择上级岗位
        //设定
        var setting_pjob={
            check: {
                enable: true,
                chkStyle: "radio",
                radioType: "all"
            },
            data: {
                simpleData: {
                    enable: true
                }
            },
            callback:{
                onCheck: pjobOnCheck
            }
        };
        //选择上级岗位
        function pjobOnCheck (event, treeId, treeNode){
            if(treeNode.checked==true){
               
                $("#new_pid").val(treeNode.id);
                $("#new_pid_kg").html("<span style='background:#d0e0e0;border:1px solid #ccc;border-radius:5px;padding:2px 3px;margin-right:5px'>"+treeNode.name+"&nbsp;&nbsp;<span onclick='qxpjob();' style='cursor:pointer;font-size:16px;'>x</span></span>");
            }else{
                $("#new_pid_kg").html("");
                $("#new_pid").val("");
            }
        }
        //获取岗位列表
        $(".new_job_partent_id").click(function(){
            $(".alert_addNewZone_tree").show();
            $("#txtree").html("岗位列表");
            $("#fenqu_fzr").hide();
                $(".wait").show();

           $.post("{:url('Job/getjobs')}",{jid:$("#jid").val()},function(re){
                var data_job=new Array();
                if(re!=""){
                    data_job=JSON.parse(re);
                }
                
                
                $("#fenqu_fzr").show();
                $(".wait").hide();
                $.fn.zTree.init($("#tree_em"), setting_pjob, data_job);
                $("#disabledTrue").bind("click", {disabled: true}, disabledNode);
                $("#disabledFalse").bind("click", {disabled: false}, disabledNode);
           })
       })
         //关闭树
        
        $("#del_this1").click(function(){
             
            $(".alert_addNewZone_tree").hide();
        })
        $("#qd").click(function(){
            
            $(".alert_addNewZone_tree").hide();
        })

    </script>
    <script type="text/javascript">

//设定
            var setting_de = {
            check: {
                enable: true,
                chkStyle: "radio",
                radioType: "all"
            },
            data: {
                simpleData: {
                    enable: true
                }
            },
            callback:{
                onCheck: deOnCheck
            }
        };
        //部门树选择
        function deOnCheck(event, treeId, treeNode) {
            if(treeNode.checked==true){
               
                $("#de_id").val(treeNode.id);
                $("#depart_kg").html("<span style='background:#d0e0e0;border:1px solid #ccc;border-radius:5px;padding:2px 3px;margin-right:5px'><span class='departsdename'>"+treeNode.name+"</span>&nbsp;&nbsp;<span onclick='qxde();' style='cursor:pointer;font-size:16px;'>x</span></span>");
            }else{
                $("#depart_kg").html("");
                $("#de_id").val("");
            }
        }
       
        //获取主部门信息
         $("#choose_depart").click(function(){
            $(".alert_addNewZone_tree").show();
            $("#txtree").html("部门列表");
            $("#fenqu_fzr").hide();
                $(".wait").show();

           $.post("{:url('Departments/getbm')}",function(re){
                var data_de=JSON.parse(re);
                
                $("#fenqu_fzr").show();
                $(".wait").hide();
                $.fn.zTree.init($("#tree_em"), setting_de, data_de);
                $("#disabledTrue").bind("click", {disabled: true}, disabledNode);
                $("#disabledFalse").bind("click", {disabled: false}, disabledNode);
           })
       })
            var regex_job_name=/^[a-zA-Z0-9\u4e00-\u9fa5]{1,20}$/;
    var regex_job_no=/^[a-zA-Z0-9]{1,10}$/;
$("#bc").click(function(){
        if($("#new_job_name").val()==""){
            swal({
                        title: "错误",
                        text: "岗位名称不能为空",
                        type: "warning"
                    });return;
        } 
        if(!regex_job_name.test($("#new_job_name").val())){
            swal({
                        title: "错误",
                        text: "岗位名称为字母，数字和中文组成且长度不超过20",
                        type: "warning"
                    });return;
        }
        if($("#new_job_title").val()==""){
            swal({
                        title: "错误",
                        text: "对外称谓不能为空",
                        type: "warning"
                    });return;
        } 
        if(!regex_job_name.test($("#new_job_title").val())){
            swal({
                        title: "错误",
                        text: "对外称谓为字母，数字和中文组成且长度不超过20",
                        type: "warning"
                    });return;
        }
        //new_job_no
        if($("#new_job_no").val()==""){
            swal({
                        title: "错误",
                        text: "岗位编码不能为空",
                        type: "warning"
                    });return;
        } 
        if(!regex_job_no.test($("#new_job_no").val())){
            swal({
                        title: "错误",
                        text: "岗位编码为字母，数字组成且长度不超过10",
                        type: "warning"
                    });return;
        }
        if($("#new_job_level").val()==""){
            swal({
                        title: "错误",
                        text: "岗位等级不能为空",
                        type: "warning"
                    });return;
        }
        if($("#de_id").val()==""){
            swal({
                        title: "错误",
                        text: "所属部门不能为空",
                        type: "warning"
                    });return;
        }
        if($("#jid").val()==0){
            
               $.ajax({
                    type: "POST",
                    url: "{:url('Employees/new_job')}",
                    async: false,
                    data: "job_name="+$("#new_job_name").val()+"&job_title="+$("#new_job_title").val()+"&parent_id="+$("#new_pid").val()+"&job_no="+$("#new_job_no").val()+"&job_level="+$("#new_job_level").val()+"&department_id="+$("#de_id").val()+"&remark="+$("#new_job_remark").val(),
                    success: function(msg){
                        //alert(msg);
                            if(msg==1){
                                swal({
                                    title: "完成",
                                    text: "新的岗位已添加",
                                    type: "success"
                                },function(){
                                    location.href="{:url('Job/manage')}";
                                });
                            }else{
                                var wrong_new_job="";
                                switch(msg){
                                    case 0:wrong_new_job="非法提交";break;
                                    case 2:wrong_new_job="岗位编号不能为空";break;
                                    case 3:wrong_new_job="岗位名称不能为空";break;
                                    case 4:wrong_new_job="对外称谓不能为空";break;
                                    case 5:wrong_new_job="岗位等级不能为空";break;
                                    case 6:wrong_new_job="所属部门不能为空";break;
                                    case 7:wrong_new_job="系统繁忙，请稍后";break;
                                    case 8:wrong_new_job="岗位名或编号已存在";break;
                                    default:wrong_new_job="系统繁忙，请稍后";break;
                                }
                                    swal({
                                        title: "错误",
                                        text: wrong_new_job,
                                        type: "warning"
                                    });

                            }
                    }
                });
        }else{
           
            $.ajax({
                    type: "POST",
                    url: "{:url('Job/update_job')}",
                    async: false,
                    data: "job_name="+$("#new_job_name").val()+"&job_title="+$("#new_job_title").val()+"&parent_id="+$("#new_pid").val()+"&job_no="+$("#new_job_no").val()+"&job_level="+$("#new_job_level").val()+"&department_id="+$("#de_id").val()+"&jid="+$("#jid").val()+"&remark="+$("#new_job_remark").val(),
                    success: function(msg){
                        //alert(msg);
                            if(msg==1){
                                swal({
                                    title: "完成",
                                    text: "岗位编辑已成功",
                                    type: "success"
                                },function(){
                                    location.href="{:url('Job/manage')}";
                                });
                            }else{
                                var wrong_new_job="";
                                switch(msg){
                                    case 0:wrong_new_job="非法提交";break;
                                    case 2:wrong_new_job="岗位编号不能为空";break;
                                    case 3:wrong_new_job="岗位名称不能为空";break;
                                    case 4:wrong_new_job="对外称谓不能为空";break;
                                    case 5:wrong_new_job="岗位等级不能为空";break;
                                    case 6:wrong_new_job="所属部门不能为空";break;
                                    case 7:wrong_new_job="系统繁忙，请稍后";break;
                                    case 8:wrong_new_job="岗位名或编号已存在";break;
                                    default:wrong_new_job="系统繁忙，请稍后";break;
                                }
                                    swal({
                                        title: "错误",
                                        text: wrong_new_job,
                                        type: "warning"
                                    });

                            }
                    }
                });
        }
      
        
    })
$(".huishou").click(function(){
            location.href="{:url('Job/huishou')}";
        })
    </script>
</body>

</html>
